package com.example.cmtwo.service;

import com.example.cmtwo.mapper.BackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OwnAdviseService
{
    @Autowired
    private BackMapper backMapper;

    public boolean insertAdvise(Integer Id, String Funtion, Integer Phone, String content)
    {
        try {
            backMapper.insertAdvise(Id, Funtion, Phone, content);
        }catch (Exception e)
        {
            System.out.println(e);
            return false;
        }

        return true;
    }

}
